package day05;

public class ForDemo {
    public static void main(String[] args) {
       /* int sum = 0;//存和;
        for (int i = 1; i <=100; i++) {
            sum+=i;

        }
        System.out.println(sum);*/


        /*int sum = 0;
        for (int i = 1; i <=100; i++) {
            sum+=i;
            System.out.print(i+" ");
            if (sum==101){
                break;
            }
            System.out.println(sum);

        }*/

    }
}
